package UseCollection.UseList.LinkedList01;

import java.util.Iterator;
import java.util.LinkedList;

public class LinkedList01 {
    public static void main(String[] args) {
        LinkedList<String> linkedList = new LinkedList<>();
        linkedList.add("小平");
        linkedList.add("你好啊");
        Iterator<String> it = linkedList.iterator();
        while (it.hasNext()){
            System.out.println(it.next());
        }
        linkedList.addFirst("fuck you");

    }
}
